package cn.shop.front.entity.req;

import cn.shop.utils.constant.Regular;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-21 13:45
 * @description :
 */
@Data
public class VerificationReq {

    private String code;
    @NotNull(message = "请输入姓名")
    @Pattern(regexp = Regular.NAME, message = Regular.NAME_MASSAGE)
    private String name;
    @NotNull(message = "请输入身份证号")
    @Pattern(regexp = Regular.IDCARD, message = Regular.IDCARD_MESSAGE)
    private String identityCard;

}
